<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('rigthCenterDiv','${ctx}/drug/drugDict/dialog?drugCode=${drugDict.drugCode}&drugName=${drugDict.drugName}')">规格列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/drug/drugDict/form?drugCode=${drugDict.drugCode}&drugName=${drugDict.drugName}')">添加规格</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <table id="contentTable" class="table table-bordered mg-t datatable">
                            <thead>
                                <tr>
                                        <th>药品代码</th>
                                        <th>药品名称</th>
                                        <th>药品含量</th>
                                        <th>规格</th>
                                        <th>单位</th>
                                        <th>毒理分类</th>
                                        <th>OTC类型</th>
                                        <th>限制等级</th>
                                        <th>贵重等级</th>
                                        <%--<th>备注</th>--%>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${drugDictList}" var="drugDict">
                                <tr>
                                        <td> ${drugDict.drugCode}</td>
                                        <td> ${drugDict.drugName}</td>
                                        <td> ${drugDict.drugContent}</td>
                                        <td> ${drugDict.drugSpec}</td>
                                        <td>${fns:getDictLabels(drugDict.unit, 'SPEC_UNIT', '')}</td>
                                        <td> ${fns:getDictLabels(drugDict.toxiProperty, 'DRUG_TOXI_PROPERTY_DICT', '')}</td>
                                        <td> ${fns:getDictLabels(drugDict.isOtc, 'YES_NO', '')}</td>
                                        <td> ${fns:getDictLabels(drugDict.limitClass, 'LIMIT_CLASS_DICT', '')}</td>
                                        <td> ${fns:getDictLabels(drugDict.preciousFlag, 'DRUG_PRECIOUS_FLAG_DICT', '')}</td>
                                        <%--<td> ${drugDict.remarks}</td>--%>
                                    <td>
                                        <a href="#"  class="btn btn-success btn-xs" onclick="loadDiv('rigthCenterDiv','${ctx}/drug/drugDict/form?id=${drugDict.id}')">修改</a>
                                        <%--<a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该药品规格吗？',function(){delLoad('rigthCenterDiv','${ctx}/drug/drugDict/delete?id=${drugDict.id}','${ctx}/drug/drugDict/dialog?drugCode=${drugDict.drugCode}&drugName=${drugDict.drugName}')})">删除</a>--%>
                                    </td>
                                </tr>
                            </c:forEach>
                        </table>
                    </div>
                </div>
            </section>
        </div>
    </div>